package com.mxnet.chongjin.supoman.bean;

/**
 * author:chongjin
 * email:lcj270018655@163.com
 * date:2018/4/17
 * other:
 */

public class AllMachine {
    private int imgId1, imgId2;
    private String text1, text2;

    public AllMachine(int imgId1, String text1, int imgId2, String text2) {
        super();
        this.imgId1 = imgId1;
        this.imgId2 = imgId2;
        this.text1 = text1;
        this.text2 = text2;
    }

    public int getImgId1() {
        return imgId1;
    }

    public void setImgId1(int imgId1) {
        this.imgId1 = imgId1;
    }

    public int getImgId2() {
        return imgId2;
    }

    public void setImgId2(int imgId2) {
        this.imgId2 = imgId2;
    }

    public String getText1() {
        return text1;
    }

    public void setText1(String text1) {
        this.text1 = text1;
    }

    public String getText2() {
        return text2;
    }

    public void setText2(String text2) {
        this.text2 = text2;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o)
            return true;
        if (o == null || getClass() != o.getClass())
            return false;

        AllMachine that = (AllMachine) o;

        if (imgId1 != that.imgId1)
            return false;
        if (imgId2 != that.imgId2)
            return false;
        if (text1 != null ? !text1.equals(that.text1) : that.text1 != null)
            return false;
        return text2 != null ? text2.equals(that.text2) : that.text2 == null;
    }

    @Override
    public int hashCode() {
        int result = imgId1;
        result = 31 * result + imgId2;
        result = 31 * result + (text1 != null ? text1.hashCode() : 0);
        result = 31 * result + (text2 != null ? text2.hashCode() : 0);
        return result;
    }

    @Override
    public String toString() {
        return "AllMachine{" +
                "imgId1=" + imgId1 +
                ", imgId2=" + imgId2 +
                ", text1='" + text1 + '\'' +
                ", text2='" + text2 + '\'' +
                '}';
    }
}
